﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;

namespace PRO_DOCS.BLL.Utilities
{
    public class TextEncryption
    {
        public static string Decrypt(string sEncryptedText)
        {
            return Encoding.UTF8.GetString(Convert.FromBase64String(sEncryptedText));
        }

        public static string Encrypt(string sPlainText)
        {
            return Convert.ToBase64String(Encoding.UTF8.GetBytes(sPlainText));
        }
    }
}
